package by.grsu.hdm.model.remotecontrol.impl;

import by.grsu.hdm.model.ihomedevice.HomeDeviceStatus;
import by.grsu.hdm.model.ihomedevice.devices.WashingMachine;
import by.grsu.hdm.model.remotecontrol.AbstractRemoteControl;

public class WashingMachineRemoteControl extends AbstractRemoteControl {
	
	private WashingMachine washingMachine;
	
	public WashingMachineRemoteControl(WashingMachine washingMachine){
		this.washingMachine = washingMachine;
	}
	
	@Override
	public HomeDeviceStatus turnOn(){
			return washingMachine.turnOn();
	}

	@Override
	public HomeDeviceStatus turnOff() {
			return washingMachine.turnOff();
	}
	
	@Override
	public String getDeviceId() {
		return washingMachine.getDeviceId();
	}
}
